package 链表.双向.基础.API;

import java.util.LinkedList;

public class Clear {
    public static void main(String[] args) {
        LinkedList<Integer> list = new LinkedList<>();
        list.add(1);
        list.add(2);
        list.add(3);

        list.clear();
        System.out.println(list);
    }
}
